//
//  LGSchedulStopView.m
//  HeartDiseaseManage
//
//  Created by 1234 on 2023/8/31.
//

#import "LGSchedulStopView.h"

@interface LGSchedulStopView()
/**   */
@property (nonatomic , strong)UIImageView *bgView;
/**   */
@property (nonatomic , strong)UILabel *titleLabel;


@end

@implementation LGSchedulStopView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubview:self.bgView];
        [self addSubview:self.titleLabel];
    }
    return self;
}

-(UIImageView *)bgView{
    if(!_bgView){
        _bgView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"排班设置-临时停诊"]];
        _bgView.frame = CGRectMake(0, 0, viewPix(156), viewPix(83));
    }
    return _bgView;
}

-(UILabel *)titleLabel{
    if(!_titleLabel){
        _titleLabel = [UILabel lableWithText:@"" colorString:@"#FFFFFF" textFont:LGFont(16) textAlignment:NSTextAlignmentCenter lines:1];
        _titleLabel.frame = CGRectMake(0, 0, viewPix(156), viewPix(83));
    }
    return _titleLabel;
}

@end
